package com.itron.base.util;

import com.itron.base.model.vo.ResultVO;

public class ResultUtil {
    /**
     * 成功的返回消息
     * @return
     */
    public static ResultVO success(){
        return new ResultVO(200,"success");
    }
    /**
     * 成功的返回消息
     * @return
     */
    public static ResultVO success(Object data){
        return new ResultVO(200,"success" ,data);
    }

    /**
     * 错误的返回消息
     * @param msg
     * @return
     */
    public static  ResultVO error(String msg){
        return new ResultVO(500,msg);
    }

}
